<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> {$sitename} / <a href="{url('index/index')}">内容管理</a>{$path} / <a href="{url('index/exts',array(cid=>$cid,id=>$info['id']))}">{$info['title']}</a> <span class="blue">[扩展]</span></div>
<div class="m10">
<div class="table-head"><a href="{url('index/exts',array(cid=>$cid,id=>$info['id']))}" class="button"><i class="iconfont">&#xf053;</i> 返回</a><strong>添加/编辑内容 <span class="blue">[扩展]</span></strong></div>
<form id="form" action="{url('index/extssave')}" method="post">
<input type="hidden" name="channel_id" value="{$cid}"/>
<input type="hidden" name="content_id" value="{$info['id']}"/>
<input type="hidden" name="fid" value="{$fid}"/>
<table class="table">
	<tr><th>内容标题:</th><td><input datatype="*" nullmsg="标题必须填写" type="text" class="input w400" name="title" value="{$rel['title']}" /><input readonly="readonly" type="text" name="fontcolor"  class="input w60 ui-color"  value="{$rel['fontcolor']}" /><span class="fn-f14 gray">颜色</span></td></tr>
    <tr><th>内容属性:</th><td>排序&nbsp;&nbsp;<input datatype="n" name="sort" type="text" class="input w50" value="{intval($rel['sort'])}" />&nbsp;&nbsp;浏览量&nbsp;&nbsp;<input datatype="n" name="views" type="text" class="input w50" value="{intval($rel['views'])}" />&nbsp;&nbsp;责任编辑&nbsp;&nbsp;<input datatype="*" nullmsg="责任编辑不能为空"  name="editor" type="text" class="input w50" value="{if $rel['editor']}{$rel['editor']} {else} {$editor} {/if}" /></td></tr>
    <tr><th>URL跳转:</th><td><input type="text" class="input w400" name="url" value="{$rel['url']}" /></td></tr>
    {loop $module $vo}
    <tr><th>{$vo['title']}:</th><td>{$vo['input']} <span class="gray">{$vo['msg']}</span></td></tr>
    {/loop} 
</table>
<div class="btn fn-tac">
	<a href="{url('index/exts',array(cid=>$cid,id=>$info['id']))}" class="button"><i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form','editor','tip','date','color',function(){ 
    $('#form').forms({types:'post',uploads:'{url('uploads/index')}'});
})      
</script>